package com.hdoit.ares.web.tp.modelconfig;
import com.hdoit.ares.web.insu.providers.ZhonganCarVehicleTypeProvider;
import com.hdoit.ares.web.insu.providers.ZhonganNotifyTypeProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月25日 18:25:20
 * @comment
 */
public class ZhonganCallbackConfig extends ModelMetadataAttributeConfiguration{
    public ZhonganCallbackConfig(){
        this.setProperty("notifyType")
            .hasAttribute(new DisplayNameAttribute("通知类型"))
            .hasAttribute(new DropDownListAttribute(new ZhonganNotifyTypeProvider()));

        this.setProperty("requestDate")
            .hasAttribute(new DisplayNameAttribute("请求时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("oldPolicyNo")
            .hasAttribute(new DisplayNameAttribute("原保单号"));

        this.setProperty("policyNo")
            .hasAttribute(new DisplayNameAttribute("保单号"));

        this.setProperty("sumInsured")
            .hasAttribute(new DisplayNameAttribute("保额"));

        this.setProperty("premium")
            .hasAttribute(new DisplayNameAttribute("保费"));

        this.setProperty("effectiveDate")
            .hasAttribute(new DisplayNameAttribute("保单起期/退保生效日期"));

        this.setProperty("expiryDate")
            .hasAttribute(new DisplayNameAttribute("保单止期"));

        this.setProperty("productName")
            .hasAttribute(new DisplayNameAttribute("产品名称"));

        this.setProperty("promoteCode")
            .hasAttribute(new DisplayNameAttribute("推广位code"));

        this.setProperty("promoteName")
            .hasAttribute(new DisplayNameAttribute("推广位名称"));

        this.setProperty("promoteFee")
            .hasAttribute(new DisplayNameAttribute("推广费"));

        this.setProperty("vehicleType")
            .hasAttribute(new DisplayNameAttribute("车险保单类型"))
            .hasAttribute(new DropDownListAttribute(new ZhonganCarVehicleTypeProvider()));

        this.setProperty("bizContent")
            .hasAttribute(new DisplayNameAttribute("业务参数"));

    }
}